package blog

import "github.com/gin-gonic/gin"

type PostRouter struct{}

func (p *PostRouter) InitBlogPostRouter(Router *gin.RouterGroup) {
	blogPostRouter := Router.Group("blog/")
	{
		blogPostRouter.POST("post", postApi.Create)
		blogPostRouter.GET("post/:psotId", postApi.Get)
		blogPostRouter.PUT("post", postApi.Update)
		blogPostRouter.DELETE("post/:psotId", postApi.Delete)
		blogPostRouter.POST("post/list", postApi.List)
	}
}
